'use client';

import React from 'react';
import { useRouter } from 'next/navigation';

export default function () {
  const router = useRouter();
  React.useEffect(() => {
    window.back = () => {
      router.back();
    };
    window.turnto = (info) => {
      router.push(info);
    };
  }, []);

  return null;
}
